package crew.gwt.client.widgets;

import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.uibinder.client.UiConstructor;
import com.google.gwt.user.client.ui.HTML;

public class ClassicLabel extends HTML {
	
	public ClassicLabel() {
		super();
		setStyleName("ClassicLabel");
	}
	
	public @UiConstructor ClassicLabel(String content) {
		super(content);
		setStyleName("ClassicLabel");
	}
	

	public ClassicLabel(String content,ClickHandler clickHandler) {
		super(content);
		setStyleName("ClassicLabel");
		addClickHandler(clickHandler);
	}
	
	@Override
	public HandlerRegistration addClickHandler(ClickHandler handler) {
		addStyleName("ClassicLabel-Clickable");
		return super.addClickHandler(handler);
	}
}
